body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #f0f2f5;
}

/* 三栏布局 */
#left-panel {
    width: 280px;
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

#left-panel {
    width: 280px;
    float: left;
    background-color: #fff;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    height: 100vh;
    position: sticky;
    top: 0;
}

.dropdown-header {
    margin-top: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.species-dropdown {
    margin-bottom: 25px;
}

.search-box {
    margin-bottom: 15px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #eb9b3e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.species-list {
    list-style-type: none;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
    background-color: #fafafa;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.species-list::-webkit-scrollbar {
    width: 6px;
}

.species-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 3px;
}

.species-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.species-item:hover {
    background-color: #f0f7ff;
}

#main-area {
    flex: 1;
    padding: 20px;
    max-width: 60%;
}

#results {
    margin-top: 20px;
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
}

.paper-card {
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.paper-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.paper-card h4 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 18px;
}

.paper-card h4 .species-highlight {
    color: #eb9b3e;
    font-weight: 700;
}

.authors-highlight {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.abstract {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.stats {
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 14px;
}

.publication-date, .publisher {
    background-color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
}

#right-panel {
    width: 280px;
    padding: 20px;
    border-left: 1px solid #e0e0e0;
    background-color: #fff;
    height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.05);
}

.actions h4, .recommendations h4 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.actions button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #eb9b3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

.actions button:hover {
    background-color: #eb9b3e;
}

.recommendations ul {
    list-style-type: none;
    padding: 0;
}

.recommendations li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    transition: color 0.2s;
}

.recommendations li:hover {
    color: #eb9b3e;
    cursor: pointer;
}

.pdf-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 1000;
}

.pdf-viewer-container {
    position: relative;
    width: 80%;
    height: 90%;
    margin: 2% auto;
    background: white;
    border-radius: 8px;
    padding: 20px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    z-index: 1001;
}

.pdf-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* .close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    cursor: pointer;
    font-size: 28px;
    color: #333;
    transition: color 0.2s;
    z-index: 1001;
} */

.close-btn:hover {
    color: #e53935;
}

.pdf-viewer-container {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.pdf-section {
    flex: 2;
    height: calc(100% - 40px);
}

.comments-section {
    flex: 1;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.comment-item {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.comment-form textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    resize: vertical;
    font-size: 14px;
    transition: border-color 0.3s;
}

.comment-form textarea:focus {
    border-color: #eb9b3e;
    outline: none;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

.comment-meta {
    font-size: 0.85em;
    color: #666;
    margin-top: 8px;
}

.comment-author {
    color: #2c3e50;
    font-weight: 600;
}

.comment-timestamp {
    margin-left: 10px;
    color: #888;
}

/* 搜索  */
.search-bar {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-right: 10px;
}

.search-bar button {
    padding: 10px 20px;
    background-color: #eb9b3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #eb9b3e;
}

/* 搜索框按钮效果 */
.search-bar button {
    padding: 10px 20px;
    background-color: #eb9b3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.search-bar button:hover {
    background-color: #e68a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-bar button:active,
.search-bar button:focus {
    background-color: #d77c28;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* 右侧操作面板按钮效果 */
.actions button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #eb9b3e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-size: 14px;
}

.actions button:hover {
    background-color: #e68a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.actions button:active,
.actions button:focus {
    background-color: #d77c28;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* 弹出评论框中的发表评论按钮效果 */
.comment-form button {
    padding: 8px 16px;
    background-color: #eb9b3e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.comment-form button:hover {
    background-color: #e68a30;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comment-form button:active,
.comment-form button:focus {
    background-color: #d77c28;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    outline: none;
}

/* 为按钮添加发光效果，参考搜索结果3 */
.actions button:hover {
    box-shadow: 0 0 15px rgba(235, 155, 62, 0.6);
}

.comment-form button:hover {
    box-shadow: 0 0 10px rgba(235, 155, 62, 0.6);
}

/* 为按钮添加按键效果，参考搜索结果4 */
.actions button:active {
    transform: scale(0.98);
}

.comment-form button:active {
    transform: scale(0.98);
}